package com.ivsign.lib_idcardidentification;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @description :
 * @autHor :  Jason
 * @date : 2018/8/10 16:58
 */

public class DeviceUUID implements Parcelable {

    private String mac;

    private String  service;

    private String notifyChracter;

    private String writeChracter;

    public DeviceUUID() {
    }

    public DeviceUUID(String mac, String service, String notifyChracter, String writeChracter) {
        this.mac = mac;
        this.service = service;
        this.notifyChracter = notifyChracter;
        this.writeChracter = writeChracter;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getNotifyChracter() {
        return notifyChracter;
    }

    public void setNotifyChracter(String notifyChracter) {
        this.notifyChracter = notifyChracter;
    }

    public String getWriteChracter() {
        return writeChracter;
    }

    public void setWriteChracter(String writeChracter) {
        this.writeChracter = writeChracter;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.mac);
        dest.writeString(this.service);
        dest.writeString(this.notifyChracter);
        dest.writeString(this.writeChracter);
    }

    protected DeviceUUID(Parcel in) {
        this.mac = in.readString();
        this.service = in.readString();
        this.notifyChracter = in.readString();
        this.writeChracter = in.readString();
    }

    public static final Creator<DeviceUUID> CREATOR = new Creator<DeviceUUID>() {
        @Override
        public DeviceUUID createFromParcel(Parcel source) {
            return new DeviceUUID(source);
        }

        @Override
        public DeviceUUID[] newArray(int size) {
            return new DeviceUUID[size];
        }
    };
}
